package com.hibernate;

import java.util.Date;
import java.util.List;

public class Account {

	private long id;
	private String accountNo;
	private double balance;
	private Date lastUpdateDate;
	private Bank bank;
	private List<AccountStatement> statements;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	public Bank getBank() {
		return bank;
	}

	protected void setBank(Bank bank) {
		this.bank = bank;
	}

	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}
	
	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public Date getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(Date lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public List<AccountStatement> getStatements() {
		return statements;
	}

	public void setStatements(List<AccountStatement> statements) {
		this.statements = statements;
	}
}
